const common = {
  KeyName: "competition",
  ClientToken: undefined,
  MaxCount: 1,
  MinCount: 1,
  InstanceInitiatedShutdownBehavior: "stop",
  IamInstanceProfile: {
    Name: "AmazonSSMRoleForInstancesQuickSetup",
  },
  Monitoring: { Enabled: true },
  UserData: undefined,
  hostname: ["custom"],
  BlockDeviceMappings: [
    {
      DeviceName: "/dev/xvda",
      Ebs: {
        DeleteOnTermination: true,
        VolumeSize: 0,
      },
    },
  ],
  /**
   * 添加标签 实现自动关闭实例
   * {key:"Schedule", value:"stop-at-09:32"}
   */
  // TagSpecifications: [
  //   {
  //     ResourceType: 'instance',
  //     Tags: [],
  //   },
  // ],
};
const ssh = {
  DryRun: false,
  ImageId: "ami-07d7dd06735c449df",
  InstanceType: "t2.micro",
  SecurityGroupIds: ["sg-0e7228ced0d100cb9"],
  ...common,
};
const rdp = {
  DryRun: false,
  ImageId: "ami-0e1446495b9ea9357",
  InstanceType: "t2.medium",
  SecurityGroupIds: ["sg-0e7228ced0d100cb9"],
  ...common,
};
const vnc = {
  DryRun: false,
  ImageId: "ami-0d808cd88f05de165",
  InstanceType: "t2.medium",
  SecurityGroupIds: ["sg-0e7228ced0d100cb9"],
  ...common,
};

export { ssh, rdp, vnc, common };
